#include<stdio.h>
int main()
{
	int foot,inch;
	double m;
	scanf("%d%d",&foot,&inch);
	m=(foot*12*2.54+inch*2.54)/100.0;
	printf("%.2lf\n",m);
	return 0;
}
